package com.lky.marshallmall.product.feign;

import com.lky.common.utils.R;
import com.lky.marshallmall.product.vo.SkuHashStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/3/26 15:51
 */
@FeignClient("mall-ware")
public interface WareFeignService {

    /**
     * R可以加泛型
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
